package com.springclouddemo.rabbitmq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {
    /**
     * 队列名
     */
    public static final String DEMO_QUEUE = "demoQueue";
    @Bean
    public Queue demoString() { return new Queue(DEMO_QUEUE); }


    public static final String OBJECT_QUEUE = "Queueobject";
    @Bean
    public Queue handleObjectQueue() {
        return new Queue(OBJECT_QUEUE);
    }

}
